package com.lb.trac.pojo.condition;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;

import com.lb.trac.pojo.Societa;
import com.lb.trac.util.SQLCondition;

public class FinderProgettiByCliente implements SQLCondition {

	private Societa societa;

	public FinderProgettiByCliente(Societa s) {
		this.societa = s;
	}

	@Override
	public Criterion create(Object... params) {
		return Restrictions.eq("societa.descBreve", societa);
	}

}
